class Task {
    static belongsTo = Project

    static hasMany = [subTasks : SubTask, pspData: PspData]
	    
    Project project
	
    String name
    String description
    double hours
    Date startDate
    Date endPlanDate
    Date endDate

    Date dateCreated
    Date lastUpdated
    
    static constraints = {
        name(blank: false, unique: true)
    }
}
